package com.liang.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class liangRule {


    @Bean
    public IRule myRule(){
        return new LiangRandomRule();//默认是轮询，现在我们自定义访问自己定义的算法
    }
}
